package com.molyfun.parents.rest.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:11/2/16.
 * 图片附件
 */
public class MediaobjectlistBean implements Parcelable {
    private String id;
    private String url;
    //1 图片 2视频 3音频 4游戏
    private int type;
    private String bigurl;
    private String smallurl;
    //教师证书那里会用到，展示名字
    private String name;

    private String cover;

    //游戏中使用imgurl来获取封面
    private String imgurl;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getBigurl() {
        return bigurl;
    }

    public void setBigurl(String bigurl) {
        this.bigurl = bigurl;
    }

    public String getSmallurl() {
        return smallurl;
    }

    public void setSmallurl(String smallurl) {
        this.smallurl = smallurl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.url);
        dest.writeInt(this.type);
        dest.writeString(this.bigurl);
        dest.writeString(this.smallurl);
        dest.writeString(this.name);
        dest.writeString(this.cover);
        dest.writeString(this.imgurl);
    }

    public MediaobjectlistBean() {
    }

    protected MediaobjectlistBean(Parcel in) {
        this.id = in.readString();
        this.url = in.readString();
        this.type = in.readInt();
        this.bigurl = in.readString();
        this.smallurl = in.readString();
        this.name = in.readString();
        this.cover = in.readString();
        this.imgurl = in.readString();
    }

    public static final Parcelable.Creator<MediaobjectlistBean> CREATOR = new Parcelable.Creator<MediaobjectlistBean>() {
        @Override
        public MediaobjectlistBean createFromParcel(Parcel source) {
            return new MediaobjectlistBean(source);
        }

        @Override
        public MediaobjectlistBean[] newArray(int size) {
            return new MediaobjectlistBean[size];
        }
    };
}